import request from '@/sheep/request';

const AreaApi = {
  // 获得地区树
  getAreaTree: () => {
    return request({
      url: '/system/area/tree',
      method: 'GET'
    });
  },
  // 未登录用户根据经纬度获取小区
  getVillage: (params) => {
    return request({
      url: '/trade/delivery/pick-up-store/get-recommend',
      method: 'GET',
      params,
    });
  },
  // 登录用户根据经纬度获取小区默认推荐十个
  getVillageList: (params) => {
    return request({
      url: '/trade/delivery/pick-up-store/list-ten',
      method: 'GET',
      params,
    });
  },


};

export default AreaApi;